home *** CD-ROM | disk | FTP | other *** search
- <script language="VBScript">
-
- Sub OnContextMenu()
- On Error Resume Next
- set l = external.menuArguments.document.parentWindow.top.document.location
- a = "" & l.href
- if Err then
- Err.Clear
- set l = external.menuArguments.document.location
- end if
- a = "" & l.href
- if InStr(a, "http://") = 1 then
- if InStr(1, a, "http://siams.com/ww.pl", 1) = 1 then exit sub
- if InStr(1, a, "http://siams.com/wwl.pl", 1) = 1 then exit sub
- if InStr(1, a, "http://siams.com:", 1) = 1 then
- if InStr(1, a, "/ww.pl", 1) <> 0 then exit sub
- if InStr(1, a, "/wwl.pl", 1) <> 0 then exit sub
- end if
- l.href = "http://siams.com/ww.pl?~GZ/" & Right(a, Len(a)-7)
- else
- alert "Sorry, WebWarper is not applicable for this page. " & Chr(13) _
- & "It is viewed through the """ & l.protocol _
- & """ protocol," & Chr(13) & "but WebWarper can be used only with " _
- & "pages viewed" & Chr(13) & "through the ""http://"" protocol."
- end if
- end sub
-
- OnContextMenu()
-
- </script>
-